<!--
/**************************************************
* @ modifypassword.jsp
*
* Copyright   2006 Hitrust Technology Inc.
* Developed by SDC, Hitrust.
* All Rights Reserved.
*
* Modify History:
*  v1.00, 2006/03/08, Jenny Li
*  1) first release
/**************************************************
-->
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="../../common.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--<LINK href="<%=response.encodeURL(root+"/css/css.css")%>" type=text/css rel=stylesheet>-->
<LINK href="<%=response.encodeURL(root + "/css/caigouxitong.css")%>" type=text/css rel=stylesheet>
<SCRIPT language="JavaScript" src="<%=response.encodeURL(root+"/js/common.js")%>"></SCRIPT>
<script>
	function process(param){
		if(param == 'M'){
			if(isEmpty(modifyform.oldPwd.value)){
				alert("请输入原密码！");
				modifyform.oldPwd.focus();
				return;
			}
			if(isEmpty(modifyform.newPwd.value)){
				alert("新密码不能为空！");
				modifyform.newPwd.focus();
				return;
			}
			if(modifyform.newPwd.value.length < 4){
				alert("新密码长度不能小于4位！");
				modifyform.newPwd.focus();
				return;
			}
			if(isEmpty(modifyform.confirmPwd.value)){
				alert("请输入确认密码！");
				modifyform.confirmPwd.focus();
				return;
			}
			if(modifyform.newPwd.value != null && modifyform.confirmPwd.value != null && modifyform.newPwd.value != modifyform.confirmPwd.value){
				alert("两次输入的密码不一致，请重新输入！");
				modifyform.confirmPwd.focus();
				return;
			}
			modifyform.action = "<%=response.encodeURL(request.getContextPath()+"/A600102.do")%>";
			modifyform.submit();
		}else{
			return;
		}
	}
</script>
<title>修改密码</title>
</head>
<body>
<body BGCOLOR="#f5f5f5"	text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"">
<form name="modifyform" method="post" >
<p><br></p>
<br>
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr> 
		<td> 
			<table class=bg_table id=tableId	cellspacing=1 cellpadding=0 style="padding-left:5;padding-right:5" width=100% align=center border=0>
				<TR height=20>
					<TD class="bg_column" align=center>原密码</TD>
					<TD left=right class="bg_row_odd">
					<input type="password" name="oldPwd" maxlength="10" >					
					</TD>				
					<TD class="bg_column" align=center>新密码</TD>
					<TD align=left class="bg_row_odd">
					<input type="password" name="newPwd" maxlength="10">
					</TD>								
				</TR>
				<TR height=20>
					<TD class="bg_column" align=center>新密码确认</TD>
					<TD align=left class="bg_row_odd" colspan="3">
					<input type="password" name="confirmPwd" maxlength="10">
					</TD>		
				</TR>
			</table>
		</td>
	</tr>
</table>
</form>
    <p align="center">  
<!--		<input type="image" src="< %=response.encodeURL(root+"/images/button/xiugaipwd.gif")%>" width="85" height="24" class="box" onclick="process('M')"/>&nbsp;-->
<input type="button" name="修改密码" value="修改密码" onclick="process('M')" class="kuang">
    </p>
<%
	String msg = (String)request.getAttribute("message");
	if(msg != null && !msg.equalsIgnoreCase("")){
%>
	<table><tr><td align="left"><font color="red"><%=msg%></font></td></tr></table>	
<%	    
	}
%>
</body>
</html>